import axios from '@/libs/api.request'
//考试列表
export const examList = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/getUnifiedExamManagerList',
    method: 'post',
    data: params
  })
}

//保存试题
export const saveUnifiedExamItems = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/saveUnifiedExamItems',
    method: 'post',
    data: params
  })
}
//保存考试
export const saveUnifiedExam = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/saveUnifiedExam',
    method: 'post',
    data: params
  })
}
//删除考试
export const deleteExam = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/batch-delete',
    method: 'post',
    data: params
  })
}
//删除试题
export const deleteUnifiedExamItems = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/deleteUnifiedExamItems',
    method: 'post',
    data: params
  })
}
//试题列表
export const examItemList = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/getUnifiedExamItemDetail',
    method: 'post',
    data: params
  })
}
//发布考试
export const publishUnifiedExam = (params) => {
  return axios.request({
    url: '/manage/unifiedExam/publishUnifiedExam',
    method: 'post',
    data: params
  })
}
//选项列表
export const getExamItemDetail = (params) => {
  return axios.request({
    url: `/manage/unifiedExam/getExamItemDetail/${params}`,
    method: 'get',
    data: params
  })
}
//考试详情
export const getUnifiedExamDetail = (params) => {
  return axios.request({
    url: `/manage/unifiedExam/getUnifiedExamDetail/${params}`,
    method: 'get',
    data: params
  })
}

//成绩管理
export const getUnifiedExamResultList = (params) => {
  return axios.request({
    url: `/manage/unifiedExam/getUnifiedExamResultList`,
    method: 'post',
    data: params
  })
}

//试题列表
export const getUnifiedExamItemDetail = (params) => {
  return axios.request({
    url: `/manage/unifiedExam/getUnifiedExamItemDetail`,
    method: 'post',
    data: params
  })
}

